package com.baosight.risk.service.riwa.entity;

import com.baosight.risk.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import javax.persistence.*;

import lombok.Data;

/**
 * Table: T_RIWA_RISK_WARING_TARGET
 * 重点风险预警模型==预警指标
 */
@Data
@ApiModel
@Table(name = "T_RIWA_RISK_WARING_TARGET")
public class RiwaRiskWaringTarget extends BaseEntity {

    /**
     * 预警模型
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    WARNING_MODEL_GUID
     * Nullable:  true
     */
    @ApiModelProperty("预警模型")
    @Column(name = "WARNING_MODEL_GUID")
    private String warningModelGuid;

    /**
     * 重点风险ID
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    IMPORT_GUID
     * Nullable:  true
     */
    @ApiModelProperty("重点风险ID")
    @Column(name = "IMPORT_GUID")
    private String importGuid;

    /**
     * 风险点ID
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    RISK_ID
     * Nullable:  false
     */
    @ApiModelProperty("风险点ID")
    @Column(name = "RISK_ID")
    private String riskId;

    /**
     * 预警状态ID
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    WARING_STATUS_GUID
     * Nullable:  true
     */
    @ApiModelProperty("预警状态ID")
    @Column(name = "WARING_STATUS_GUID")
    private String waringStatusGuid;

    /**
     * 预警规则ID
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    WARNING_RULE_ID
     * Nullable:  true
     */
    @ApiModelProperty("预警规则ID")
    @Column(name = "WARNING_RULE_ID")
    private String warningRuleId;

    /**
     * 预警指标类型（T-指标、W-预警）
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    WARNING_TARGET_TYPE
     * Nullable:  true
     */
    @ApiModelProperty("预警指标类型（T-指标、W-预警）")
    @Column(name = "WARNING_TARGET_TYPE")
    private String warningTargetType;

    /**
     * 预警指标类型说明
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    WARNING_TARGET_TYPE_NAME
     * Nullable:  true
     */
    @ApiModelProperty("预警指标类型说明")
    @Column(name = "WARNING_TARGET_TYPE_NAME")
    private String warningTargetTypeName;

    /**
     * 指标编号
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    TARGET_NO
     * Nullable:  true
     */
    @ApiModelProperty("指标编号")
    @Column(name = "TARGET_NO")
    private String targetNo;

    /**
     * 指标名称
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    TARGET_NAME
     * Nullable:  true
     */
    @ApiModelProperty("指标名称")
    @Column(name = "TARGET_NAME")
    private String targetName;

    /**
     * 计量单位
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    UNIT
     * Nullable:  true
     */
    @ApiModelProperty("计量单位")
    @Column(name = "UNIT")
    private String unit;

    /**
     * 范围上限
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    MAX_LIMIT
     * Nullable:  true
     */
    @ApiModelProperty("范围上限")
    @Column(name = "MAX_LIMIT")
    private BigDecimal maxLimit;

    /**
     * 范围下限
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    MIN_LIMIT
     * Nullable:  true
     */
    @ApiModelProperty("范围下限")
    @Column(name = "MIN_LIMIT")
    private BigDecimal minLimit;

    /**
     * 范围上限符号
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    MAX_LIMIT_MARK
     * Nullable:  true
     */
    @ApiModelProperty("范围上限符号")
    @Column(name = "MAX_LIMIT_MARK")
    private String maxLimitMark;

    /**
     * 范围下限符号
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    MIN_LIMIT_MARK
     * Nullable:  true
     */
    @ApiModelProperty("范围下限符号")
    @Column(name = "MIN_LIMIT_MARK")
    private String minLimitMark;

    /**
     * 所属单位
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    COMP_CODE
     * Nullable:  true
     */
    @ApiModelProperty("所属单位")
    @Column(name = "COMP_CODE")
    private String compCode;

    /**
     * 所属单位名称
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    COMP_NAME
     * Nullable:  true
     */
    @ApiModelProperty("所属单位名称")
    @Column(name = "COMP_NAME")
    private String compName;

    /**
     * 排序
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    ROW_ORDER
     * Nullable:  true
     */
    @ApiModelProperty("排序")
    @Column(name = "ROW_ORDER")
//    private String rowOrder;
    private  Integer rowOrder;
    /**
     * 状态
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    STATUS
     * Nullable:  true
     */
    @ApiModelProperty("状态")
    @Column(name = "STATUS")
    private String status;

    /**
     * 状态说明
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    STATUS_NAME
     * Nullable:  true
     */
    @ApiModelProperty("状态说明")
    @Column(name = "STATUS_NAME")
    private String statusName;

    /**
     * 定性/定量/值集
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    QUANTITY_FLAG
     * Nullable:  true
     */
    @ApiModelProperty("定性/定量/值集")
    @Column(name = "QUANTITY_FLAG")
    private String quantityFlag;

    /**
     * 定性/定量/值集中文
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    QUANTITY_FLAG_C
     * Nullable:  true
     */
    @ApiModelProperty("定性/定量/值集中文")
    @Column(name = "QUANTITY_FLAG_C")
    private String quantityFlagC;

    /**
     * 值集编码
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    DD_TYPE_CODE
     * Nullable:  true
     */
    @ApiModelProperty("值集编码")
    @Column(name = "DD_TYPE_CODE")
    private String ddTypeCode;

    /**
     * 值集名称
     * <p>
     * Table:     T_RIWA_RISK_WARING_TARGET
     * Column:    DD_TYPE_NAME
     * Nullable:  true
     */
    @ApiModelProperty("值集名称")
    @Column(name = "DD_TYPE_NAME")
    private String ddTypeName;

}